package com.kgc.study;

public class Pet {
    protected String name;
    protected int health;
    protected int love;


    public Pet() {
    }
    public Pet(String name, int health, int love) {
        this.name = name;
        this.health = health;
        this.love = love;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    //被重写的方法
    public void print(){

    }

    //去医院看病的方法
    public void toHospital(){

    }
}
